<template>
  <el-dialog :append-to-body="true" :close-on-click-modal="false" :before-close="cancel" :visible.sync="dialog" title="异常栈查看" width="80%" style="background-color: #99a9bf; margin-top: -100px" center>
    <spen style="font-size: 18px" v-html="text"/>
    <div slot="footer" class="dialog-footer">
      <el-button :loading="loading" type="primary" @click="cancel">确认</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      loading: false, dialog: false,
      text: '',
      rules: {
      }
    }
  },
  methods: {
    cancel() {
      this.resetForm()
    },
    resetForm() {
      this.dialog = false
      this.text = ''
    }
  }
}
</script>

<style scoped>

</style>
